import config from '@/utils/config'
import { generateRequest } from '@/utils/request'
const { apiUrlPrefix } = config

/** 护工管理列表 */
export const nursingWorkersListApi = generateRequest(`${apiUrlPrefix}/pcs/nursingWorkers/list`)

/** 新增护工管理 */
export const createNursingWorkersApi = generateRequest(`${apiUrlPrefix}/pcs/nursingWorkers`)

/** 护工管理修改 */
export const updateNursingWorkersApi = generateRequest(`${apiUrlPrefix}/pcs/nursingWorkers/{id}`, 'put')

/** 护工管理删除 */
export const deleteNursingWorkersApi = generateRequest(`${apiUrlPrefix}/pcs/nursingWorkers/{id}`, 'delete')

/** 护工管理详情 */
export const getNursingWorkersApi = generateRequest(`${apiUrlPrefix}/pcs/nursingWorkers/{id}`, 'get')
